Learning Flex Basics (Part 3) : Working with Containers
Table of Contents
- Introduction
- Building the Containers
- Create the Application Object
- Create a Data Array
- Add a TabNavigator Container for Global Navigation
- Add an HBox and Panel Containers for Main Views
- Add a ViewStack, LinkBar, and Panel Containers for Secondary Views
- Add a Form Container
- Add a Tile Layout Container and Populate It Using a Repeater
- Create a Pseudo Bar Chart Using a Repeater and VBoxes
- Complete Code Listing for containers.mxml
- Where to Go from Here
Add a TabNavigator Container for Global Navigation
The TabNavigator container automatically creates
navigation aids for layout containers nested inside it based on their label values.
-
After the Script block, add a TabNavigator container with margin, height, and width values as follows:
<mx:TabNavigator id="tabNav" marginLeft="10" marginTop="20" height="500" width="500"> </mx:TabNavigator>